|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpow.ivyclient.BusIvy_
public class BusIvy_
inner representation of an ivy bus store the drones' information about the drones which belong to this ivy bus store the IP adress of the machine where the ivy bus is working
| Constructor Summary | |
|---|---|
BusIvy_()
|
|
| Method Summary | |
|---|---|
void |
addDrones(int newDroneId)
inform the bus that a new drone send information on this bus |
void |
displayDrones()
display information on stdout about the drones present on the bus |
java.net.InetAddress |
getAddress()
provides the IP adress of the host hosting the bus |
java.util.ArrayList<java.lang.Integer> |
getDrones()
get a array list containing the ivy id of the drones present on the bus |
boolean |
isAlive()
inform if the bus is alive |
boolean |
isOwnBy(int myDroneId)
inform if a drone is present or not on the bus |
void |
setAddress(java.net.InetAddress myInetAddress)
|
void |
updateTime()
update the 'inner clock' of the object when a message for this bus is detected useful to know if the bus is still alive |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BusIvy_()
| Method Detail |
|---|
public void setAddress(java.net.InetAddress myInetAddress)
myInetAddress - the ip address of the ivy hostpublic void updateTime()
public void addDrones(int newDroneId)
newDroneId - (the ivy id)public java.util.ArrayList<java.lang.Integer> getDrones()
public void displayDrones()
public java.net.InetAddress getAddress()
public boolean isOwnBy(int myDroneId)
myDroneId - the ivy id
public boolean isAlive()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||